package com.translate.web.api.controller;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.response.vo.ResponseModel;
import com.translate.vo.BannerVO;
import com.translate.web.service.IBannerService;

@RestController
@RequestMapping("banner")
public class BannerController  {
	private IBannerService service;

	public BannerController(IBannerService service) {
		this.service = service;
	}



	@RequestMapping(value = "/list", method = RequestMethod.POST)
	public ResponseModel<List<BannerVO>> list() {
		return ResponseModel.success(this.service.bannerVOsFormCache(BannerVO.class));
	}
}